continue_sources = [
    'continue_abi.cpp',
    'continue.cpp',
    'interface/i_continue.cpp'
]

continue_static_lib = static_library(
  'Continue',
  continue_sources,
  include_directories: include_dirs,
  dependencies: [dev_deps],
  install: false
)

continue_lib = shared_library(
    'Continue',
    include_directories: include_dirs,
    dependencies: [libmcpp_deps],
    name_prefix: 'lib',
    name_suffix: 'so',
    install: true,
    install_dir: drivers_install_dir,
    link_whole: [continue_static_lib]
)

continue_dep = declare_dependency(
    link_with: continue_lib,
    dependencies: [libmcpp_deps],
)

if build_tests
  custom_target(
    'copy_libContinue',
    output: 'copy_libContinue',
    command: ['cp', continue_lib.full_path(), drivers_install_dir],
    depends: continue_lib,
    build_by_default: true,
  )
endif
